import request from "@/utils/request";

// 获取门票列表
export function getTickets(params) {
  return request.get('/ticket', { params });
}

// 添加门票
export function addTicket(data) {
  return request.post('/ticket/add', data);
}

// 更新门票
export function updateTicket(ticketId, data) {
  return request.put(`/ticket/update/${ticketId}`, data);
}

// 删除门票
export function deleteTicket(ticketId) {
  return request.delete(`/ticket/delete/${ticketId}`);
}